package com.foruo.learn.designmode.cloneable;

/**
 * 原始写法
 * @author GaoYuan
 * @date 2018/5/14 上午8:49
 */
public class TestMain2 {

    public static void main(String[] args){
        int i = 0;
        while(i<10){
            DemoEntity demo = new DemoEntity();
            demo.setMsg("消息内容");
            demo.setId(""+i);
            demo.setName("高元"+i);
            System.out.println(demo);
            i++;
        }
    }
}
